06. Case Study: Swagger Configuration
JAVA C2 L7 06 Demo - Swagger Configuration
The case study to be documented is a REST API that retrieves a list of locations from a database. The code can be cloned from GitLab.
The REST API has the following components:
- Controller - LocationController.java
- Service - LocationService.java and LocationServiceImpl.java
- CRUD Repository - LocationRepository.java
- Domain Entity/Model - Location.java
- Swagger Config - SwaggerConfig.java
- H2 Database accessible via http://localhost:8080/h2/
- Tomcat Server accessible via http://localhost:8080
- Swagger UI via http://localhost:8080/swagger-ui.html